<template>
  <div class="pannel-view">
    <scroll-refresh @refresh="onReresh">
      <scroll-wrap @more="onMore" :finshed="finshed">
        <slot></slot>
      </scroll-wrap>
    </scroll-refresh>
  </div>
  
  <cover-popup></cover-popup>
</template>

<script setup>
defineProps({
  finshed: { type: Boolean, default: false }
})

const emit = defineEmits(['refresh', 'more'])
const onReresh = () => {
  console.log('refresh')
  emit('refresh')
}

const onMore = () => {
  console.log('more')
  emit('more')
}
</script>

<style lang="scss" scoped>
.pannel-view {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
</style>